package com.ss.android.article.common;

import android.animation.ValueAnimator;
import android.animation.ValueAnimator;

final class cc implements ValueAnimator.AnimatorUpdateListener {
    private final FeedFlashMaskView b;
    private int a;

    cc(FeedFlashMaskView arg2) {
        this.b = arg2;

        this.a = 0;
    }

    public final void onAnimationUpdate(ValueAnimator arg4) {
        if (this.a == 0) {
            int v0 = this.b.getHeight();
            int v1 = this.b.getWidth();
            if (v1 != 0) {
                this.a = (v0 * v0 / v1 + v1) * 2;
            }
        }

        this.b.a = ((int) (((Float) arg4.getAnimatedValue()).floatValue() * (((float) this.a))));
        this.b.invalidate();
    }
}

